<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add Ingredient</title>
</head>
<body>
    <h1>New Ingredient</h1>
    <form action="/webshop/admin/ingredients/edit" method="POST">
        <input type="hidden" name="ingredientId" value="${ingredient.id}">
        <table>
            <tr>
                <td>Description</td>
                <td><input type="text" name="designation" value="${ingredient.designation}" /></td>
            <tr>
            <tr>
                <td>Unit</td>
                <td><input type="text" name="unit" value="${ingredient.unit}" /></td>
            <tr>
            <tr>
                <td>Amount</td>
                <td><input type="text" name="amount" value="${ingredient.amount}" /></td>
            </tr>
        </table>
        <input type="submit" value="Apply changes">
    </form>
    <a href="/webshop/admin/ingredients"><button>Back to Ingredient Overview</button></a>
</body>
</html>